package com.example.mvc_thymeleaf.repository;


import com.example.mvc_thymeleaf.model.Orders;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.List;

public interface OrdersRepository extends JpaRepository<Orders,Long> {
    @Query("select e from Orders e where e.status like %:status%")
    List<Orders> findByStatus(@Param("status") String status);
}
